<div class="pub_labs">
	<form action="/ajax/add_edit" method="post" target="_self">
		<br/><div class="input-group">
			<span class="input-group-addon">插件名</span>
			<input type="text" class="form-control" name="name" value="${name}" placeholder="插件名">
		</div>
		<br/><div class="input-group">
			<span class="input-group-addon">标题</span>
			<input type="text" class="form-control" name="title" value="${title}" placeholder="标题">
		</div>
		<br/><div class="input-group">
			<span class="input-group-addon">缩略图</span>
			<input type="text" class="form-control" name="cover" value="${cover}" placeholder="缩略图">
            <a href="javascript:void(0)" class="input-group-addon pub_cover_btn">选择</a>
		</div>
		<br/><div class="input-group">
			<span class="input-group-addon">github</span>
			<input type="text" class="form-control" name="git_full_name" value="${git_full_name}" placeholder="github地址（如“bh-lay/uploader”）">
		</div>
		<br/><div class="input-group">
			<span class="input-group-addon">简介</span>
			<textarea class="form-control" name="intro" cols="50" rows="5" placeholder="插件简介">${intro}</textarea>
		</div>
		{@if github}
		<br/><div class="panel panel-default"><div class="panel-body">
			<h4>此处为自动抓取github的信息</h4>
			<dl class="dl-horizontal">
			{@each github as it,key}
				{@if it}
					<dt>${key}</dt><dd>${it}</dd>
				{@/if}
			{@/each}
		    </dl>
		</div></div>
		{@/if}
		<br/><div>
			<input type="hidden" name="id" value="${id}" />
			<input type="hidden" name="category" value="labs" />
			<button type="submit" class="btn btn-primary">提交</button>
			{@if id}
			<a href="/ajax/labs/updateGitInfo?id=${id}&repo_name=${git_full_name}" class="btn btn-default" data-action-ajax="已发起更新">更新github数据</a>
			{@/if}
		</div>
	</form>
</div>